package Model;

import java.io.Serializable;
import java.util.ArrayList;

/*
 * @author Paolo Cordova
 */

public class CardTypePayFund extends Card implements Serializable {
	private int Amount_;
	final static long serialVersionUID = 203;
	
	public CardTypePayFund() 
	{
		Message_ = "NONE";
		Amount_ = 0;
	}
	
	public CardTypePayFund(String message, int amount) 
	{
		Message_ = message;
		Amount_ = amount;
	}
	
	public int getAmount() 
	{
		return Amount_;
	}
	
	public void setAmount(int amount) 
	{
		Amount_ = amount;
	}
	
	public void landOn(Player p, ArrayList<Player> players) 
	{
		System.out.println("Pay Fund");
		p.updateCash(-getAmount());
	}

}
